package com.generator.sysManage.positionManage.service;

import com.generator.sysManage.positionManage.pojo.JMJob;
import com.generator.sysManage.sectionManage.pojo.DMDept;
import com.generator.sysManage.userManage.pojo.City;
import com.generator.sysManage.userManage.pojo.Permission;
import com.generator.sysManage.userManage.pojo.Province;
import com.generator.util.PageModel;
import org.springframework.ui.Model;

import java.util.List;

public interface IJMService {

    //获取职位信息
    public List<JMJob> getJMJobListByJMJob(JMJob jmJob);

    //查询职位信息(分页)
    public PageModel<JMJob> getJMJobListByFY(JMJob jmJob,PageModel<JMJob> pageModel);

    //据条件查询所有部门
    public List<DMDept> getDeptList(DMDept dmDept);

    //添加职位
    public Integer addJMJob(JMJob jmJob);

    //修改职位
    public Integer updateJMJob(JMJob jmJob);

    //修改职位状态(0-正常，1已撤销)
    public String  updateState(JMJob jmJob, Model model);

    //修改搜索后职位状态(0-正常，1已撤销)
    public String  updateState1(JMJob jmJob, Model model,JMJob jmJob1);

    //赋权(就是给权限表插入多条该职位的模块权限记录）
    public Integer addPermission(Permission permission);

    //修改某一条权限记录状态
    public Integer updatePermissionState(Permission permission);

}
